Getelementbyid getelementsbyname getelementsbytagname
Getelementbyid obtains the node through the ID attribute of the node. This object contains attributes such as nodename, nodetype, parentnode, and childnodes.
Nodename indicates the node name. If
// Create a label by defining the Method//*************************************//Copy codeThe Code is as follows:Var createLabel = function (id, name, value ){Var label_var = document. createElement ("label ");Var label_id = document.
//*************************************//
// Create a label by defining the Method
//*************************************//
VaR createlabel = function (ID, name, value ){
VaR label_var = Document. createelement ("label ");
VaR
The IFRAME name can be the target of the link or form, and the link or form can be opened to the IFRAME.I have encountered a problem in IE that I cannot set the IFRAME name attribute.
JavascriptCode
VaR IFRAME = Document. createelement ('iframe '
My blog has moved to my site.
Site Link
RSS
When dealing with cascading menus in the previous article, I found an interesting phenomenon, using createelement/innerhtml/document. the write performance is different. I tested it myself.1.
From lcx's blog
In the WEB standard, you can use getElementById (), getElementsByName (), and getElementsByTagName () to access any tag in the DOCUMENT:
1. getElementById ()GetElementById () can access a specific element in the DOCUMENT. As the name
JS Document attributes and Methods document. title // set the document title is equivalent to the title Tag document of HTML. bgColor // set the background color of the page document. fgColor // set the foreground color (text color) document.
JS Document attributes and methods. I hope you can understand them to facilitate future application development. Document. title // set the document title equivalent to the title tag of HTML
Document. bgColor // set the background color of the
JS magic Hall: in-depth explanation of LINK elements and js magic link
I. Preface
We generally use to introduce an external stacked Style File, however, we do not know much about the specific meaning of each attribute of the LINK element and the
I should be tired after the night package, but I still have the strength to beat these characters. It seems that I have not reached this point yet.To put it bluntly, I recently wrote an online editor, which is similar to ewebeditor. Of course, it is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.